package com.rem.spring.xmlTx.service;

import com.rem.spring.entity.Emp;
import com.rem.spring.xmlTx.dao.EmpDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Rem
 * @date 2023-03-06
 */
@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpDao empDao;

    @Override
    public void updateEmpById(Emp emp) {
        empDao.updateEmpById(emp);
        //int a= 1/0;
    }
}
